home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / mdm-2.000 / mdm-2 / Makefile < prev    next >
Makefile  |  1993-11-16  |  2KB  |  64 lines

  1. #
  2. # Makefile for the LINUX Modem Server Version 2
  3. #
  4. # Compile used is GNU C
  5. #
  6. CC = gcc
  7. #
  8. # -DDEBUG for misc debugging to be sent to STDERR/logging device
  9. # -DLOGDEV = "/dev/tty8" for logging output to be sent to a Virtual TTY 
  10. # -DLOGFILE = "/usr/adm/modem.log" for logging output to be sent to a logfile
  11. # -DUTMP if you want /etc/utmp to be updated
  12. # (Not implemented yet) -DMTMP if you want /etc/mtmp to be updated
  13. #
  14. EXTRA = '-DLOGDEV="/dev/tty8"' '-DLOGFILE="/usr/adm/modem.log"'  
  15. EXTRA2 = -DUTMP
  16. #
  17. # Optimisers..
  18. #
  19. OPTIM = -Wall -O6 -m486 -fomit-frame-pointer -s -N
  20. #
  21. # Debug options
  22. #
  23. DEBUG = #-DDEBUG #-g
  24. #
  25.  
  26. CFLAGS = $(EXTRA) $(EXTRA2) $(OPTIM) $(DEBUG)
  27.  
  28. CFILES = modem.c fgetsraw.c strupr.c fgetstr.c flog.c setup.c
  29. OFILES = modem.o fgetsraw.o strupr.o fgetstr.o flog.o setup.o
  30. HFILES = modem.h
  31.  
  32. all: modem
  33.  
  34. modem: $(OFILES)
  35.     $(CC) $(CFLAGS) -o modem $(OFILES)
  36.  
  37. install: install-modem install-default
  38.      @echo "Successfully installed."
  39.  
  40. install-modem: modem
  41.     install -s -g system -o root -m 110 modem /etc
  42.  
  43. install-default: modem.cfg ttyS1.cfg
  44.     install -d /etc/default
  45.     install -g system -o root -m 644 modem.cfg /etc/default/modem
  46.     install -g system -o root -m 644 ttyS1.cfg /etc/default/ttyS1
  47.  
  48. clean:
  49.     rm -f *.o modem
  50.  
  51. tar:    $(CFILES) $(HFILES)
  52.     tar -cvf mdm.tar *.c *.h COPY* Makefile modem.cfg ttyS1.cfg README version BUGS TODO examples/* FAQ
  53.  
  54. shar:    $(CFILES) $(HFILES)
  55.     shar *.c *.h COPY* Makefile modem.cfg ttyS1.cfg README version BUGS TODO examples/* FAQ >mdm.shar
  56.  
  57. # dep
  58. modem.o: modem.c modem.h
  59. fgetsraw.o: fgetsraw.c
  60. strupr.o: strupr.c
  61. fgetstr.o: fgetstr.c
  62. flog.o: flog.c
  63. setup.o: setup.c modem.h
  64.